package dem1;

import dem2.Iswim;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 33013
 * Date: 2023-03-28
 * Time: 12:18
 */

class Perdon implements Iswim{

    @Override
    public void swim() {

    }
}

class Animal1 implements Iswim{

    @Override
    public void swim() {

    }
}

public class Test {
    public static void main(String[] args) {
        String s = "dfd";
        s.toCharArray();
        char[] chars = s.toCharArray();
        int[] a = new int[26];
        for(int i = 0; i < s.length(); i++){
            a[chars[i] - 97]++;
        }
        for(int i = 0;i<s.length() ; i++){
            if(a[chars[i] - 97] == 1){
                return i;
            }
        }
        return -1;
    }

}
